<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_pca.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">wb32l003_pca.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="wb32l003__pca_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">/* Define to prevent recursive inclusion -------------------------------------*/</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef __WB32L003_PCA_H</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define __WB32L003_PCA_H</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/* Includes ------------------------------------------------------------------*/</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;wb32l003.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">/* Exported types ------------------------------------------------------------*/</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="struct_p_c_a___base_init_type_def.html">   31</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="struct_p_c_a___base_init_type_def.html#a994ea1be87f8bc26c20901a36f834ea8">   33</a></span>&#160;  uint32_t <a class="code" href="struct_p_c_a___base_init_type_def.html#a994ea1be87f8bc26c20901a36f834ea8">ClkSrcSel</a>;       </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="struct_p_c_a___base_init_type_def.html#a2a04f75a3062a9a261afec229c1516cb">   36</a></span>&#160;  uint32_t <a class="code" href="struct_p_c_a___base_init_type_def.html#a2a04f75a3062a9a261afec229c1516cb">RunInIdleMode</a>;   </div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;} <a class="code" href="struct_p_c_a___base_init_type_def.html">PCA_BaseInitTypeDef</a>;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="struct_p_c_a___i_c___init_type_def.html">   43</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="struct_p_c_a___i_c___init_type_def.html#a6c0364c24e89f17849b0109236112fba">   45</a></span>&#160;  uint32_t <a class="code" href="struct_p_c_a___i_c___init_type_def.html#a6c0364c24e89f17849b0109236112fba">ICPolarity</a>;     </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="struct_p_c_a___i_c___init_type_def.html#ae82bf9242a014164f9f6907f29782c44">   48</a></span>&#160;  uint32_t <a class="code" href="struct_p_c_a___i_c___init_type_def.html#ae82bf9242a014164f9f6907f29782c44">Channel</a>;        </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;} <a class="code" href="struct_p_c_a___i_c___init_type_def.html">PCA_IC_InitTypeDef</a>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="struct_p_c_a___o_c___init_type_def.html">   55</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;{</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="struct_p_c_a___o_c___init_type_def.html#a20c1c7a469b1571abdda3fcadee24d1b">   57</a></span>&#160;  uint32_t <a class="code" href="struct_p_c_a___o_c___init_type_def.html#a20c1c7a469b1571abdda3fcadee24d1b">CompareEnable</a>;  </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="struct_p_c_a___o_c___init_type_def.html#a5474a76dcb5f8c84c2d0501a41079ea8">   60</a></span>&#160;  uint32_t <a class="code" href="struct_p_c_a___o_c___init_type_def.html#a5474a76dcb5f8c84c2d0501a41079ea8">TogEnable</a>;      </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="struct_p_c_a___o_c___init_type_def.html#a02e29a360b7d956c1ae3c89269460f5a">   64</a></span>&#160;  uint32_t <a class="code" href="struct_p_c_a___o_c___init_type_def.html#a02e29a360b7d956c1ae3c89269460f5a">PwmEnable</a>;      </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="struct_p_c_a___o_c___init_type_def.html#a49500eef6a2354eeee4adc005bf9cef6">   68</a></span>&#160;  uint32_t <a class="code" href="struct_p_c_a___o_c___init_type_def.html#a49500eef6a2354eeee4adc005bf9cef6">Period</a>;         </div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="struct_p_c_a___o_c___init_type_def.html#ae82bf9242a014164f9f6907f29782c44">   72</a></span>&#160;  uint32_t <a class="code" href="struct_p_c_a___o_c___init_type_def.html#ae82bf9242a014164f9f6907f29782c44">Channel</a>;        </div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;} <a class="code" href="struct_p_c_a___o_c___init_type_def.html">PCA_OC_InitTypeDef</a>;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">/* Exported constants --------------------------------------------------------*/</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="group___p_c_a___clock___source___selection.html#ga826f4f1f83585a44f05f3ffa15a1457e">   86</a></span>&#160;<span class="preprocessor">#define PCA_CLOCK_SOURCE_PCLKDIV32        0x00000000U                                     </span></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="group___p_c_a___clock___source___selection.html#ga98b5f139ad7d355f06a1829bff34d059">   87</a></span>&#160;<span class="preprocessor">#define PCA_CLOCK_SOURCE_PCLKDIV16        (PCA_MOD_CPS_0)                                 </span></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="group___p_c_a___clock___source___selection.html#gab8d90b191e39acdab713ed4a1d126315">   88</a></span>&#160;<span class="preprocessor">#define PCA_CLOCK_SOURCE_PCLKDIV8         (PCA_MOD_CPS_1)                                 </span></div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="group___p_c_a___clock___source___selection.html#gaab7c65f7844724f50dfb2cf5bb77bdb0">   89</a></span>&#160;<span class="preprocessor">#define PCA_CLOCK_SOURCE_PCLKDIV4         (PCA_MOD_CPS_1 | PCA_MOD_CPS_0)                 </span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="group___p_c_a___clock___source___selection.html#ga03fd0b859cb4a7e0a6cd0668c667b690">   90</a></span>&#160;<span class="preprocessor">#define PCA_CLOCK_SOURCE_PCLKDIV2         (PCA_MOD_CPS_2)                                 </span></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="group___p_c_a___clock___source___selection.html#gae4b5c0a0796b737eb852ab554082928a">   91</a></span>&#160;<span class="preprocessor">#define PCA_CLOCK_SOURCE_TIM0_OVERFLOW    (PCA_MOD_CPS_2 | PCA_MOD_CPS_0)                 </span></div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="group___p_c_a___clock___source___selection.html#ga33b9053e4b520327a1c9514058f67535">   92</a></span>&#160;<span class="preprocessor">#define PCA_CLOCK_SOURCE_TIM1_OVERFLOW    (PCA_MOD_CPS_2 | PCA_MOD_CPS_1)                 </span></div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="group___p_c_a___clock___source___selection.html#gac194429b50a55614675f4722b2fa0a4f">   93</a></span>&#160;<span class="preprocessor">#define PCA_CLOCK_SOURCE_ECI              (PCA_MOD_CPS_2 | PCA_MOD_CPS_1 | PCA_MOD_CPS_0) </span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#define IS_PCA_CLOCK_COURCE(CLOCK_SOURCE) ((CLOCK_SOURCE == PCA_CLOCK_SOURCE_PCLKDIV32) || (CLOCK_SOURCE == PCA_CLOCK_SOURCE_PCLKDIV16)    || \</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">                                           (CLOCK_SOURCE == PCA_CLOCK_SOURCE_PCLKDIV8) || (CLOCK_SOURCE == PCA_CLOCK_SOURCE_PCLKDIV4)      || \</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">                                           (CLOCK_SOURCE == PCA_CLOCK_SOURCE_PCLKDIV2) || (CLOCK_SOURCE == PCA_CLOCK_SOURCE_TIM0_OVERFLOW) || \</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">                                           (CLOCK_SOURCE == PCA_CLOCK_SOURCE_TIM1_OVERFLOW) || (CLOCK_SOURCE == PCA_CLOCK_SOURCE_ECI))</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">#define PCA_IDLEMODE_DISABLE           (0x00000000)</span></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">#define PCA_IDLEMODE_ENABLE            (0x00000080)</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor">#define IS_PCA_IDLEMODE(IDLE_MODE)     ((IDLE_MODE == PCA_IDLEMODE_DISABLE) || (IDLE_MODE == PCA_IDLEMODE_ENABLE))</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#define PCA_INPUT_POLARITY_NONE                (0x00000000)</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">#define PCA_INPUT_POLARITY_FALLING             (PCA_CCAPM0_CAPN)</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">#define PCA_INPUT_POLARITY_RISING              (PCA_CCAPM0_CAPP)</span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="preprocessor">#define PCA_INPUT_POLARITY_BOTH                (PCA_CCAPM0_CAPN | PCA_CCAPM0_CAPP)</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#define IS_PCA_INPUT_POLARATY(INPUT_POLARATY)  ((INPUT_POLARATY == PCA_INPUT_POLARITY_NONE) || (INPUT_POLARATY == PCA_INPUT_POLARITY_FALLING) || \</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">                                                (INPUT_POLARATY == PCA_INPUT_POLARITY_RISING) || (INPUT_POLARATY == PCA_INPUT_POLARITY_BOTH))</span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#define PCA_FLAG_CC0                   (PCA_CR_CCF0)</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#define PCA_FLAG_CC1                   (PCA_CR_CCF1)</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">#define PCA_FLAG_CC2                   (PCA_CR_CCF2)</span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#define PCA_FLAG_CC3                   (PCA_CR_CCF3)</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#define PCA_FLAG_CC4                   (PCA_CR_CCF4)</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#define PCA_FLAG_OVERFLOW              (PCA_CR_CF)</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">#define IS_PCA_FLAG(FLAG)              ((FLAG == PCA_FLAG_CC0) || (FLAG == PCA_FLAG_CC1) || \</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="preprocessor">                                        (FLAG == PCA_FLAG_CC2) || (FLAG == PCA_FLAG_CC3) || \</span></div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="preprocessor">                                        (FLAG == PCA_FLAG_CC4) || (FLAG == PCA_FLAG_OVERFLOW))</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="preprocessor">#define PCA_IT_CC0                     (0x01)</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">#define PCA_IT_CC1                     (0x02)</span></div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">#define PCA_IT_CC2                     (0x04)</span></div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="preprocessor">#define PCA_IT_CC3                     (0x08)</span></div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="preprocessor">#define PCA_IT_CC4                     (0x10)</span></div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#define PCA_IT_OVERFLOW                (0x80)</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor">#define IS_PCA_IT(PCA_IT)              ((PCA_IT == PCA_IT_CC0) || (PCA_IT == PCA_IT_CC1) || \</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">                                        (PCA_IT == PCA_IT_CC2) || (PCA_IT == PCA_IT_CC3) || \</span></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor">                                        (PCA_IT == PCA_IT_CC4) || (PCA_IT == PCA_IT_OVERFLOW))</span></div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="preprocessor">#define PCA_CHANNEL_0                  (0x01)</span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="preprocessor">#define PCA_CHANNEL_1                  (0x02)</span></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="preprocessor">#define PCA_CHANNEL_2                  (0x04)</span></div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="preprocessor">#define PCA_CHANNEL_3                  (0x08)</span></div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="preprocessor">#define PCA_CHANNEL_4                  (0x10)</span></div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="preprocessor">#define PCA_CHANNEL_MASK               (0x1F)</span></div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor">#define IS_PCA_CHANNEL(CHANNEL)        ((CHANNEL &amp; PCA_CHANNEL_MASK) != 0x00)</span></div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="group___p_c_a___output___compare___enable.html#ga947e12db34eb7e606efaa98dfb40bb87">  181</a></span>&#160;<span class="preprocessor">#define PCA_OC_ENABLE                  (PCA_CCAPM0_ECOM) </span></div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="group___p_c_a___output___compare___enable.html#ga345e00097e7e7693145230d86323eb2c">  182</a></span>&#160;<span class="preprocessor">#define PCA_OC_DISABLE                 0x00000000U       </span></div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="preprocessor">#define IS_PCA_OC_ENABLE(OC_ENABLE)    ((OC_ENABLE == PCA_OC_ENABLE) || (OC_ENABLE == PCA_OC_DISABLE))</span></div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="group___p_c_a___toggle___enable.html#ga41d63c269028bc014ef6bae1bc0ce079">  192</a></span>&#160;<span class="preprocessor">#define PCA_TOG_ENABLE                 (PCA_CCAPM0_MAT | PCA_CCAPM0_TOG) </span></div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="group___p_c_a___toggle___enable.html#gaebb2ade5acb4ce31a60cc2d77891a8c9">  193</a></span>&#160;<span class="preprocessor">#define PCA_TOG_DISABLE                0x00000000U                       </span></div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="preprocessor">#define IS_PCA_TOG_ENABLE(TOG_ENABLE)  ((TOG_ENABLE == PCA_TOG_ENABLE) || (TOG_ENABLE == PCA_TOG_DISABLE))</span></div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="group___p_c_a___pwm___enable.html#ga911b75f06ab6307e2bcba6750e7c9773">  203</a></span>&#160;<span class="preprocessor">#define PCA_PWM_ENABLE                 (PCA_CCAPM0_PWM) </span></div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="group___p_c_a___pwm___enable.html#ga0b9d29090738182d44951cf7c436dd82">  204</a></span>&#160;<span class="preprocessor">#define PCA_PWM_DISABLE                0x00000000U      </span></div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">#define IS_PCA_PWM_ENABLE(PWM_ENABLE)  ((PWM_ENABLE == PCA_PWM_ENABLE) || (PWM_ENABLE == PCA_PWM_DISABLE))</span></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="comment">/* Exported macros -----------------------------------------------------------*/</span></div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="comment">/* Exported functions --------------------------------------------------------*/</span></div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga8b7713c6e7622a517a51d8ac3c497527">PCA_BaseInit</a>(<a class="code" href="struct_p_c_a___base_init_type_def.html">PCA_BaseInitTypeDef</a> *PCA_InitStruct);</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#gaf0d80e150fa24aad4107a4244f93ab16">PCA_OC_Config</a>(<a class="code" href="struct_p_c_a___o_c___init_type_def.html">PCA_OC_InitTypeDef</a> *OC_Config);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga967ca99641e3595e38ebc3fc2416d57c">PCA_IC_Config</a>(<a class="code" href="struct_p_c_a___i_c___init_type_def.html">PCA_IC_InitTypeDef</a> *IC_Config);</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;uint16_t <a class="code" href="group___p_c_a.html#ga9876456753dbb5955606cb223a253440">PCA_GetCompareValue</a>(uint32_t Channel);</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga2708d3c74da3ca91a99876370acaecfc">PCA_Cmd</a>(FunctionalState NewState);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga73b40ab08526d1061e2976323b91c011">PCA_OC_Cmd</a>(uint32_t Channel, FunctionalState NewState);</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga171398258479aa84481d20b9b280ec9c">PCA_OC_INVCmd</a>(uint32_t Channel, FunctionalState NewState);</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#gab97a81e235b9e8d9a8bd9244619eba34">PCA_DeInit</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga66a4eddd3a03c8f134183bcff0cebb3e">PCA_ITConfig</a>(uint8_t PCA_IT, FunctionalState NewState);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;FlagStatus <a class="code" href="group___p_c_a.html#ga3811dff53cc45c4f10f9373aad3eee4a">PCA_GetFlagStatus</a>(uint8_t PCA_FLAG);</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;ITStatus <a class="code" href="group___p_c_a.html#gab5e4f13f9f080e7962477fa6a0a823bf">PCA_GetITStatus</a>(uint8_t PCA_IT);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga4dc308ce812dd8ede71b5b699d84b1a9">PCA_ClearITPendingBit</a>(uint8_t PCA_IT);</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#gae004d9f618bd46ac9b084ba700bb0d01">PCA_ClearFlag</a>(uint8_t PCA_FLAG);</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga8a89870fbe89fe0c70e0f59a100b3f5f">PCA_SetPWMDuty</a>(uint32_t Channel, uint8_t Duty);</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#gae90bab8b8bf3a4b1cccdd5e12d81a675">PCA_IC0_TriggerConfig</a>(uint32_t PCA_Trigger_ICPolarity);</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#gaf8598c00201b2ba51075ffb37f58571f">PCA_IC1_TriggerConfig</a>(uint32_t PCA_Trigger_ICPolarity);</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga065d7157f6cd2f9bbff49eaa308a05e2">PCA_IC2_TriggerConfig</a>(uint32_t PCA_Trigger_ICPolarity);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#ga2c480dae466f9614741031d439c2e4a9">PCA_IC3_TriggerConfig</a>(uint32_t PCA_Trigger_ICPolarity);</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_c_a.html#gad58462fa11fae84c6bd44f9d0616c26e">PCA_IC4_TriggerConfig</a>(uint32_t PCA_Trigger_ICPolarity);</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;}</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __WB32L003_PCA_H */</span><span class="preprocessor"></span></div><div class="ttc" id="struct_p_c_a___base_init_type_def_html_a2a04f75a3062a9a261afec229c1516cb"><div class="ttname"><a href="struct_p_c_a___base_init_type_def.html#a2a04f75a3062a9a261afec229c1516cb">PCA_BaseInitTypeDef::RunInIdleMode</a></div><div class="ttdeci">uint32_t RunInIdleMode</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:36</div></div>
<div class="ttc" id="group___p_c_a_html_gaf8598c00201b2ba51075ffb37f58571f"><div class="ttname"><a href="group___p_c_a.html#gaf8598c00201b2ba51075ffb37f58571f">PCA_IC1_TriggerConfig</a></div><div class="ttdeci">void PCA_IC1_TriggerConfig(uint32_t PCA_Trigger_ICPolarity)</div><div class="ttdoc">Configures the Channel1 (PCA Input capture).</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:472</div></div>
<div class="ttc" id="group___p_c_a_html_gad58462fa11fae84c6bd44f9d0616c26e"><div class="ttname"><a href="group___p_c_a.html#gad58462fa11fae84c6bd44f9d0616c26e">PCA_IC4_TriggerConfig</a></div><div class="ttdeci">void PCA_IC4_TriggerConfig(uint32_t PCA_Trigger_ICPolarity)</div><div class="ttdoc">Configures the Channel4 (PCA Input capture).</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:520</div></div>
<div class="ttc" id="struct_p_c_a___o_c___init_type_def_html_a5474a76dcb5f8c84c2d0501a41079ea8"><div class="ttname"><a href="struct_p_c_a___o_c___init_type_def.html#a5474a76dcb5f8c84c2d0501a41079ea8">PCA_OC_InitTypeDef::TogEnable</a></div><div class="ttdeci">uint32_t TogEnable</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:60</div></div>
<div class="ttc" id="struct_p_c_a___i_c___init_type_def_html_ae82bf9242a014164f9f6907f29782c44"><div class="ttname"><a href="struct_p_c_a___i_c___init_type_def.html#ae82bf9242a014164f9f6907f29782c44">PCA_IC_InitTypeDef::Channel</a></div><div class="ttdeci">uint32_t Channel</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:48</div></div>
<div class="ttc" id="struct_p_c_a___o_c___init_type_def_html_a02e29a360b7d956c1ae3c89269460f5a"><div class="ttname"><a href="struct_p_c_a___o_c___init_type_def.html#a02e29a360b7d956c1ae3c89269460f5a">PCA_OC_InitTypeDef::PwmEnable</a></div><div class="ttdeci">uint32_t PwmEnable</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:64</div></div>
<div class="ttc" id="group___p_c_a_html_ga171398258479aa84481d20b9b280ec9c"><div class="ttname"><a href="group___p_c_a.html#ga171398258479aa84481d20b9b280ec9c">PCA_OC_INVCmd</a></div><div class="ttdeci">void PCA_OC_INVCmd(uint32_t Channel, FunctionalState NewState)</div><div class="ttdoc">Enables or disables the PCA inverse output compare generation.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:192</div></div>
<div class="ttc" id="group___p_c_a_html_gab5e4f13f9f080e7962477fa6a0a823bf"><div class="ttname"><a href="group___p_c_a.html#gab5e4f13f9f080e7962477fa6a0a823bf">PCA_GetITStatus</a></div><div class="ttdeci">ITStatus PCA_GetITStatus(uint8_t PCA_IT)</div><div class="ttdoc">Checks whether the specified PCA interrupt is set or not.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:311</div></div>
<div class="ttc" id="group___p_c_a_html_gab97a81e235b9e8d9a8bd9244619eba34"><div class="ttname"><a href="group___p_c_a.html#gab97a81e235b9e8d9a8bd9244619eba34">PCA_DeInit</a></div><div class="ttdeci">void PCA_DeInit(void)</div><div class="ttdoc">Deinitializes the PCA peripheral registers to their default reset values.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:38</div></div>
<div class="ttc" id="struct_p_c_a___o_c___init_type_def_html_a49500eef6a2354eeee4adc005bf9cef6"><div class="ttname"><a href="struct_p_c_a___o_c___init_type_def.html#a49500eef6a2354eeee4adc005bf9cef6">PCA_OC_InitTypeDef::Period</a></div><div class="ttdeci">uint32_t Period</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:68</div></div>
<div class="ttc" id="struct_p_c_a___o_c___init_type_def_html_a20c1c7a469b1571abdda3fcadee24d1b"><div class="ttname"><a href="struct_p_c_a___o_c___init_type_def.html#a20c1c7a469b1571abdda3fcadee24d1b">PCA_OC_InitTypeDef::CompareEnable</a></div><div class="ttdeci">uint32_t CompareEnable</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:57</div></div>
<div class="ttc" id="struct_p_c_a___i_c___init_type_def_html_a6c0364c24e89f17849b0109236112fba"><div class="ttname"><a href="struct_p_c_a___i_c___init_type_def.html#a6c0364c24e89f17849b0109236112fba">PCA_IC_InitTypeDef::ICPolarity</a></div><div class="ttdeci">uint32_t ICPolarity</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:45</div></div>
<div class="ttc" id="struct_p_c_a___i_c___init_type_def_html"><div class="ttname"><a href="struct_p_c_a___i_c___init_type_def.html">PCA_IC_InitTypeDef</a></div><div class="ttdoc">PCA Input Capture Configuration Structure definition</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:43</div></div>
<div class="ttc" id="group___p_c_a_html_ga967ca99641e3595e38ebc3fc2416d57c"><div class="ttname"><a href="group___p_c_a.html#ga967ca99641e3595e38ebc3fc2416d57c">PCA_IC_Config</a></div><div class="ttdeci">void PCA_IC_Config(PCA_IC_InitTypeDef *IC_Config)</div><div class="ttdoc">Initializes the PCA input capture Channels according to the specified parameters in the PCA_IC_InitTy...</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:214</div></div>
<div class="ttc" id="group___p_c_a_html_ga2708d3c74da3ca91a99876370acaecfc"><div class="ttname"><a href="group___p_c_a.html#ga2708d3c74da3ca91a99876370acaecfc">PCA_Cmd</a></div><div class="ttdeci">void PCA_Cmd(FunctionalState NewState)</div><div class="ttdoc">Enables or disables the PCA peripheral.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:50</div></div>
<div class="ttc" id="struct_p_c_a___base_init_type_def_html_a994ea1be87f8bc26c20901a36f834ea8"><div class="ttname"><a href="struct_p_c_a___base_init_type_def.html#a994ea1be87f8bc26c20901a36f834ea8">PCA_BaseInitTypeDef::ClkSrcSel</a></div><div class="ttdeci">uint32_t ClkSrcSel</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:33</div></div>
<div class="ttc" id="group___p_c_a_html_ga3811dff53cc45c4f10f9373aad3eee4a"><div class="ttname"><a href="group___p_c_a.html#ga3811dff53cc45c4f10f9373aad3eee4a">PCA_GetFlagStatus</a></div><div class="ttdeci">FlagStatus PCA_GetFlagStatus(uint8_t PCA_FLAG)</div><div class="ttdoc">Checks whether the specified PCA flag is set or not.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:355</div></div>
<div class="ttc" id="struct_p_c_a___o_c___init_type_def_html"><div class="ttname"><a href="struct_p_c_a___o_c___init_type_def.html">PCA_OC_InitTypeDef</a></div><div class="ttdoc">PCA Output Compare Configuration Structure definition</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:55</div></div>
<div class="ttc" id="struct_p_c_a___o_c___init_type_def_html_ae82bf9242a014164f9f6907f29782c44"><div class="ttname"><a href="struct_p_c_a___o_c___init_type_def.html#ae82bf9242a014164f9f6907f29782c44">PCA_OC_InitTypeDef::Channel</a></div><div class="ttdeci">uint32_t Channel</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:72</div></div>
<div class="ttc" id="group___p_c_a_html_ga8b7713c6e7622a517a51d8ac3c497527"><div class="ttname"><a href="group___p_c_a.html#ga8b7713c6e7622a517a51d8ac3c497527">PCA_BaseInit</a></div><div class="ttdeci">void PCA_BaseInit(PCA_BaseInitTypeDef *PCA_InitStruct)</div><div class="ttdoc">Initializes the PCA Unit basic function according to the specified parameters in the PCA_HandleTypeDe...</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:71</div></div>
<div class="ttc" id="group___p_c_a_html_ga66a4eddd3a03c8f134183bcff0cebb3e"><div class="ttname"><a href="group___p_c_a.html#ga66a4eddd3a03c8f134183bcff0cebb3e">PCA_ITConfig</a></div><div class="ttdeci">void PCA_ITConfig(uint8_t PCA_IT, FunctionalState NewState)</div><div class="ttdoc">Enables or disables the specified PCA interrupt.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:261</div></div>
<div class="ttc" id="struct_p_c_a___base_init_type_def_html"><div class="ttname"><a href="struct_p_c_a___base_init_type_def.html">PCA_BaseInitTypeDef</a></div><div class="ttdoc">PCA Configuration Structure definition</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.h:31</div></div>
<div class="ttc" id="group___p_c_a_html_ga9876456753dbb5955606cb223a253440"><div class="ttname"><a href="group___p_c_a.html#ga9876456753dbb5955606cb223a253440">PCA_GetCompareValue</a></div><div class="ttdeci">uint16_t PCA_GetCompareValue(uint32_t Channel)</div><div class="ttdoc">Gets the PCA Capture Compare Register value on runtime</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:537</div></div>
<div class="ttc" id="group___p_c_a_html_gaf0d80e150fa24aad4107a4244f93ab16"><div class="ttname"><a href="group___p_c_a.html#gaf0d80e150fa24aad4107a4244f93ab16">PCA_OC_Config</a></div><div class="ttdeci">void PCA_OC_Config(PCA_OC_InitTypeDef *OC_Config)</div><div class="ttdoc">Initializes the PCA output compare Channels according to the specified parameters in the PCA_OC_InitT...</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:91</div></div>
<div class="ttc" id="group___p_c_a_html_ga2c480dae466f9614741031d439c2e4a9"><div class="ttname"><a href="group___p_c_a.html#ga2c480dae466f9614741031d439c2e4a9">PCA_IC3_TriggerConfig</a></div><div class="ttdeci">void PCA_IC3_TriggerConfig(uint32_t PCA_Trigger_ICPolarity)</div><div class="ttdoc">Configures the Channel3 (PCA Input capture).</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:504</div></div>
<div class="ttc" id="group___p_c_a_html_gae004d9f618bd46ac9b084ba700bb0d01"><div class="ttname"><a href="group___p_c_a.html#gae004d9f618bd46ac9b084ba700bb0d01">PCA_ClearFlag</a></div><div class="ttdeci">void PCA_ClearFlag(uint8_t PCA_FLAG)</div><div class="ttdoc">Clears the PCA's pending flags.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:408</div></div>
<div class="ttc" id="group___p_c_a_html_ga8a89870fbe89fe0c70e0f59a100b3f5f"><div class="ttname"><a href="group___p_c_a.html#ga8a89870fbe89fe0c70e0f59a100b3f5f">PCA_SetPWMDuty</a></div><div class="ttdeci">void PCA_SetPWMDuty(uint32_t Channel, uint8_t Duty)</div><div class="ttdoc">Sets PCA PWM ouput duty cycle.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:429</div></div>
<div class="ttc" id="group___p_c_a_html_gae90bab8b8bf3a4b1cccdd5e12d81a675"><div class="ttname"><a href="group___p_c_a.html#gae90bab8b8bf3a4b1cccdd5e12d81a675">PCA_IC0_TriggerConfig</a></div><div class="ttdeci">void PCA_IC0_TriggerConfig(uint32_t PCA_Trigger_ICPolarity)</div><div class="ttdoc">Configures the Channel0 (PCA Input capture).</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:456</div></div>
<div class="ttc" id="group___p_c_a_html_ga4dc308ce812dd8ede71b5b699d84b1a9"><div class="ttname"><a href="group___p_c_a.html#ga4dc308ce812dd8ede71b5b699d84b1a9">PCA_ClearITPendingBit</a></div><div class="ttdeci">void PCA_ClearITPendingBit(uint8_t PCA_IT)</div><div class="ttdoc">Clears the PCA's interrupt pending bits.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:388</div></div>
<div class="ttc" id="group___p_c_a_html_ga065d7157f6cd2f9bbff49eaa308a05e2"><div class="ttname"><a href="group___p_c_a.html#ga065d7157f6cd2f9bbff49eaa308a05e2">PCA_IC2_TriggerConfig</a></div><div class="ttdeci">void PCA_IC2_TriggerConfig(uint32_t PCA_Trigger_ICPolarity)</div><div class="ttdoc">Configures the Channel2 (PCA Input capture).</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:488</div></div>
<div class="ttc" id="group___p_c_a_html_ga73b40ab08526d1061e2976323b91c011"><div class="ttname"><a href="group___p_c_a.html#ga73b40ab08526d1061e2976323b91c011">PCA_OC_Cmd</a></div><div class="ttdeci">void PCA_OC_Cmd(uint32_t Channel, FunctionalState NewState)</div><div class="ttdoc">Enables or disables the PCA output compare generation.</div><div class="ttdef"><b>Definition:</b> wb32l003_pca.c:163</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
